package com.comtop.topcloud.device.service;

import com.comtop.topcloud.device.model.mysql.StatisticsTable;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;

/**
 * <p>
 * 统计数据表 服务类
 * </p>
 *
 * @author 张俊彬
 * @since 2025-01-04
 */
public interface StatisticsTableService extends IService<StatisticsTable> {

    StatisticsTable getByDeviceIdAndTimeGranularityAndTimeStamp(String deviceId, String value, Date previousTime);

    StatisticsTable getLastByDeviceIdAndTimeGranularity(String deviceId, String value);
}
